package com.administrator.customviewtest.other.single;

/**
 * Created by lsp on 2017/8/30 09 07
 * DCL 双检查锁机制
 */

public class DclSigleTon {
    private static volatile DclSigleTon mInstance = null;
    private DclSigleTon(){

    }
    public static DclSigleTon getmInstance(){
        if (mInstance==null){
            synchronized (DclSigleTon.class){
                if (mInstance==null){
                    mInstance = new DclSigleTon();
                }
            }
        }
        return mInstance;
    }
}
